﻿using NUnit.Framework;
using WatiN.Core;

namespace ScrumBox.IntegrationTests.Web
{
    [TestFixture]
    public class ProjectWebTester
    {
        [Test]
        public void Can_create_new_project()
        {
            //var browser = BrowserFactory.Create(BrowserType.FireFox);
            //var appUrl = "http://localhost:";

            //browser.GoTo(appUrl + "webcast/edit/" + webcast.Id);
            //var newTestName = "New test webcast name";
            //browser.TextField("webcast_Name").Value = newTestName;
            //var newDesc = "There is a new webcast description";
            //browser.RichTextEditor("webcast_Description_Editor").Type(newDesc);

            //browser.Button("webcast_save").Click();

            //browser.Url.ShouldContain("webcast/view/" + webcast.Id);
            //ReloadWebcastFromDatabase();
            //webcast.Name.ShouldEqual(newTestName);
            //webcast.Description.ShouldEqual(newDesc);

        }
    }
}